package com.dm.client;

import com.dm.config.DmConfiguration;
import com.dm.fallback.DmItemCinemaClientFallBack;
import com.dm.pojo.DmItemCinema;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

/**
* Feign
*/
@FeignClient(name = "dm-item-provider", configuration = DmConfiguration.class, fallback = DmItemCinemaClientFallBack.class)
public interface DmItemCinemaClient {
@RequestMapping(value = "/getDmItemCinemaById",method = RequestMethod.POST)
public DmItemCinema getDmItemCinemaById(@RequestParam("id") Long id)throws Exception;

@RequestMapping(value = "/getDmItemCinemaListByMap",method = RequestMethod.POST)
public List<DmItemCinema>	getDmItemCinemaListByMap(@RequestParam Map<String,Object> param)throws Exception;

@RequestMapping(value = "/getDmItemCinemaCountByMap",method = RequestMethod.POST)
public Integer getDmItemCinemaCountByMap(@RequestParam Map<String,Object> param)throws Exception;

@RequestMapping(value = "/qdtxAddDmItemCinema",method = RequestMethod.POST)
public Integer qdtxAddDmItemCinema(@RequestBody DmItemCinema dmItemCinema)throws Exception;

@RequestMapping(value = "/qdtxModifyDmItemCinema",method = RequestMethod.POST)
public Integer qdtxModifyDmItemCinema(@RequestBody DmItemCinema dmItemCinema)throws Exception;
}

